package org.bjdp.katas.usewiremockforintegrationtesting;

import java.util.ArrayList;
import java.util.List;

public class PersonService {
    private final PersonClient personClient;

    public PersonService(PersonClient personClient) {
        this.personClient = personClient;
    }

    public List<Person> people() {
        List<Person> people = new ArrayList<>();
        people.add(this.personClient.person(1));
        people.add(this.personClient.person(2));
        return people;
    }
}
